package com.quad.innovators.salesease.config.property;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
public class LoginInfoConfig implements Cloneable{

    @Value("${user.token.refresh-token-end-time: 1800}")
    private Long tokenRefreshTokenEndTime;

    @Value("${user.token.timeout: 7200}")
    private Long tokenTimeout;

    @Value("${user.token.cookie.domain: 127.0.0.1}")
    private String cookieDomain;

    @Value("${user.token.cookie.timeout: 7200}")
    private Long cookieTimeout;

    @Value("${user.token.captcha.timeout: 300}")
    private Long captchaTimeout;

    @Override
    public Object clone()  {
        try {
            return super.clone();
        } catch (CloneNotSupportedException e) {
            throw new RuntimeException(e);
        }
    }
}
